const { ccclass, property } = cc._decorator;

@ccclass
export default class Pongo extends cc.Component {
    onCollisionEnter(other, self) {
        if (other.node.name == 'star') {
            this.node.emit('eatStar', 'star');
        }
        if (other.node.name == 'redstar') {
            this.node.emit('eatStar', 'redstar');
        }
    }
}
